home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsINonBlockingAlertService.idl < prev    next >
Text File  |  2006-05-08  |  2KB  |  56 lines

  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * YAMASHITA Makoto <makotoy@ms.u-tokyo.ac.jp>.
  19.  * Portions created by the Initial Developer are Copyright (C) 2006
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *
  24.  * ***** END LICENSE BLOCK ***** */
  25.  
  26. #include "nsISupports.idl"
  27. interface nsIDOMWindow;
  28.  
  29. /**
  30.  * This is the interface to the embeddable non-blocking alert
  31.  * service.  A non-blocking alert is a less serious informative alert
  32.  * that does not need to block the program's execution to get the
  33.  * user's response.
  34.  *
  35.  * The way to present the alert is left to the implementations.  It
  36.  * may be a dialog separate from the parent window, or a window-modal
  37.  * sheet (as the ones in Mac OS X) attached to the parent.
  38.  */
  39. [scriptable, uuid(E800EF97-AE37-46B7-A46C-31FBE79657EA)]
  40. interface nsINonBlockingAlertService : nsISupports {
  41.   /**
  42.    * This shows a non-blocking alert with the specified title and
  43.    * message text. This function requires a valid parent window with
  44.    * which the alert is associated.
  45.    *
  46.    * @param aParent
  47.    *        The parent window. This must not be null.
  48.    * @param aDialogTitle
  49.    *        Text to appear in the title of the alert.
  50.    * @param aText
  51.    *        Text to appear in the body of the alert.
  52.    */
  53.   void showNonBlockingAlert(in nsIDOMWindow aParent,
  54.                 in wstring aDialogTitle, in wstring aText);
  55. };
  56.